<div class="login_form">
	<script>
		$(function() {
			$("button").button();
			$("#login_form input[name='username']").focus();
			
			$("#login_form").validate({
				submitHandler : function(form) {
					//$(form).submit();
					
					$.ajax({
						 url : $(form).attr("action")
						,data: $(form).serialize()
						,success:function(data){
							if(data.code == mesg.success) {
								location.replace(data.moveurl);
							} else {
								alert(data.msg);
							}
						}
					});	
				}
			});
		});
	</script>
	<form action="{CFG->PATH->WWW}/member/doLogin" method="post" id="login_form">
		<input type="text" name="username" class="required" placeholder="사용자 아이디" />
		<input type="password" name="userpassword" class="required" placeholder="사용자 비밀번호" />
		
		<button type="submit">로그인</button>
	</form>
</div>